package msu.ml.data.level2;

import java.util.*;

public class Sweep
{
   private ArrayList<Scan> scans;

   public Sweep()
   {
      this.scans = new ArrayList<Scan>();
   }

   public void addScan(Scan value)
   {
      this.scans.add(value);
   }

   public Scan getScan(int i)
   {
      return this.scans.get(i);
   }

   public int numScans()
   {
      return this.scans.size();
   }

   public Date getTime()
   {
      if(numScans() > 0)
         return getScan(0).getTime();
      return new Date();
   }
}
